<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>模型信息 Module Form</title>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <link rel="stylesheet" th:href="@{/statics/layui/css/layui.css}" media="all"/>
    <link rel="stylesheet" th:href="@{/statics/style/admin.css}" media="all"/>
</head>
<body style="padding: 5px 10px;">

<table class="layui-table">
    <colgroup>
        <col width="150">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>属性名称</th>
        <th>说明</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>ID</td>
        <td class="layui-text" th:text="${module.id}"></td>
    </tr>
    <tr>
        <td>名称</td>
        <td class="layui-text" th:text="${module.name}"></td>
    </tr>
    <tr>
        <td>代码</td>
        <td class="layui-text" th:text="${module.code}"></td>
    </tr>
    <tr>
        <td>类型</td>
        <td class="layui-text" th:text="${module.type == 1 ? '单页':'列表'}"></td>
    </tr>
    <tr>
        <td>列表视图</td>
        <td class="layui-text" th:if="${module.listView == 'default'}">默认列表</td>
        <td class="layui-text" th:if="${module.listView == 'thumb'}">默认视图</td>
        <td class="layui-text" th:if="${module.listView != 'thumb' && module.listView != 'default'}"
            th:text="${'自定义视图('+module.listView+')'}"></td>
    </tr>
    <tr>
        <td>字段分组</td>
        <td class="layui-text" th:text="${module.tabs}"></td>
    </tr>
    <tr>
        <td>列表页</td>
        <td class="layui-text" th:text="${module.listApi}"></td>
    </tr>
    <tr>
        <td>详情页</td>
        <td class="layui-text" th:text="${module.getApi}"></td>
    </tr>
    <tr>
        <td>状态</td>
        <td class="layui-text" th:text="${module.status ==1?'正常':'禁用'}"></td>
    </tr>
    <tr>
        <td>创建人</td>
        <td class="layui-text" th:text="${module.createUser}"></td>
    </tr>
    <tr>
        <td>创建时间</td>
        <td class="layui-text" th:text="${#dates.format(module.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
    </tr>
    <tr>
        <td>更新人</td>
        <td class="layui-text" th:text="${module.updateUser}"></td>
    </tr>
    <tr>
        <td>更新时间</td>
        <td class="layui-text" th:text="${#dates.format(module.updateTime,'yyyy-MM-dd HH:mm:ss')}"></td>
    </tr>
    </tbody>
</table>

</body>
</html>